package com.sep.team4.data;

public class Order {

	private String gradeName;
	private String grade;
	private String day;
	private String month;
	private String indicator;
	private String leftTop;
	private String leftBottom;
	private String topText;
	private int progress;
	private double percentage;
	

	public String getGradeName() {
		return gradeName;
	}

	public void setGradeName(String orderName) {
		this.gradeName = orderName;
	}

	public String getBottomText() {
		return grade;
	}

	public void setBottomText(String orderStatus) {
		this.grade = orderStatus;
	}

	public void setDay(String day) {
		if (day.length() == 1) {
			this.day = 0 + day;
		} else {
			this.day = day;
		}

	}
	

	public String getDay() {
		return day;
	}
	
	public void setTopLeftText(String text)
	{
		this.leftTop = text;
	}
	
	public String getTopLeftText()
	{
		return leftTop;
		
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public String getMonth() {
		return month;
	}

	public String getIndicator() {
		return indicator;
	}

	public void setIndicator(String indicator) {
		this.indicator = indicator;
	}

	public void setBottomLeftText(String text) {
		this.leftBottom = text;	
	}
	
	public String getBottomLeftText()
	{
		return leftBottom;
	}

	public void setTopText(String text) {
		
		this.topText = text;		
	}
	
	public String getTopText()
	{
		return topText;
	}

	public int getProgress() {
		return progress;
	}

	public void setProgress(int progress) {
		this.progress = progress;
	}
	
	public void calculatePercentage(double amount, double total)
	{
		this.percentage =  (100 / total) * amount;
	}
	
	public int getPercentage()
	{
		return (int) percentage;
	}

}